package com.greysh.members.action;

import com.greysh.members.model.Member;
import com.greysh.members.service.MemberService;

/**
 * 
 * 前台用户
 *
 */
public class MemberAction {

	private MemberService memberService;
	private Member member;
	/**
	 * 
	 * @return 跳转到注册页面
	 */
	public String beforeJoin(){
		System.out.println("public String beforeJoin()");
		return "join";
	}
	
	/**
	 * 
	 * @return 注册
	 */
	public String join(){
		memberService.addMember(member);
		if(true)
		return "join_success";
		else
			return "join_error";
	}
	
	/**
	 * 
	 * @return 注册后页面
	 */
	public String afterJoin(){
		return null;
	}
	
	/**
	 * 
	 * @return 会员修改个人资料的页面
	 */
	public String beforeModify(){
		return null;
	}
	
	/**
	 * 
	 * @return 会员修改页面
	 */
	public String modify(){
		return null;
	}
	
	/**
	 * 
	 * @return 会员修改页面的返回页面
	 */
	public String afterModify(){
		return null;
	}

	

	

	public MemberService getMemberService() {
		return memberService;
	}

	public void setMemberService(MemberService memberService) {
		this.memberService = memberService;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}	
}
